'use strict';
const db = uniCloud.database();
const dbCmd = db.command;
// const {
// 	Service
// } = require('uni-cloud-router')
const uniID = require('uni-id')

exports.main = async (event, context) => {
	const uid = "6010d514b2f9d800014f7187";
	const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MDEwZDUxNGIyZjlkODAwMDE0ZjcxODciLCJyb2xlIjpbXSwicGVybWlzc2lvbiI6W10sImNsaWVudElkIjoiMmEwMDczYjFiZTg0NmZjMDE3MzVhMDkyODA5OGE1NmUiLCJpYXQiOjE2MTE3OTgyODAsImV4cCI6MTYxMTgwNTQ4MH0.h55oNAMHeSMEilvz-oNUQbrsqe87RY6mos7KtyCCQns";
	const res = await uniID.login({
		uid,
		token,
		needPermission: true
	})
	console.log(res)
};
